<%--
  Created by IntelliJ IDEA.
  User: pc
  Date: 2024/3/21
  Time: 8:52
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>Title</title>
</head>
<body>
<h1>添加管理员</h1>
    <form action="/admin/add">
        <p>
            <input type="text" name="adminName" placeholder="请输入管理员名称:">
        </p>
        <p>
            <input type="password" name="pwd" placeholder="请输入管理员密码:">
        </p>
        <c:forEach items="${list1}" var="role">
            <input type="checkbox" name="roleId" value="${role.id}">${role.role}
        </c:forEach>
        <p style="color: #ff0000;">${msg}</p>
        <p>
            <input type="submit" name="submit1" value="提交">
        </p>
    </form>
</body>
</html>
